import { ApiProperty } from "@nestjs/swagger";

export class CreateFileDto {
  @ApiProperty({
    description: '文件名',
    example: 'example.js',
  })  
  filename: string;

  @ApiProperty({
    description: '文件标签',
    example: 'table',
  })
  name: string;

  @ApiProperty({
    description: '文件类型',
    example: 'types',
  })
  type: string;

  @ApiProperty({
    description: '文件大小',
    example: 1024,
  })
  size: number;


  @ApiProperty({
    description: '文件内容',
    example: 'console.log("Hello, world!");',
  })
  content: string;
 
  @ApiProperty({
    description: '创建时间',
    example: '2025-04-25T08:53:33.986Z',
  })
  createdAt: Date;
} 